package models;

import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

import play.db.ebean.Model;

@Entity
@Table(name = "gslink")
public class GSLink extends Model
{
    private static final long serialVersionUID = 1L;

    @EmbeddedId
    GSLinkPK gsLinkPK;
    
    protected static String ID_GROUP 		= "id_group";
    protected static String ID_STRUCTURE 	= "id_structure";
    protected static String ID_NODE 		= "id_node";
    
  
    public static Model.Finder<Long, GSLink> find = new Model.Finder<Long, GSLink>(
	    Long.class, GSLink.class);

    public String getId_group()
    {
        return gsLinkPK.id_group;
    }

    public void setId_group(String id_group)
    {
        this.gsLinkPK.id_group = id_group;
    }

    public long getId_structure()
    {
        return gsLinkPK.id_structure;
    }

    public void setId_structure(long id_structure)
    {
        this.gsLinkPK.id_structure = id_structure;
    }

    public long getId_node()
    {
        return gsLinkPK.id_node;
    }

    public void setId_node(long id_node)
    {
        this.gsLinkPK.id_node = id_node;
    }
}
